//
//  YXDataManager.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import "YXImageBrowser.h"

NS_ASSUME_NONNULL_BEGIN

@interface YXDataManager : NSObject

- (instancetype)initWithBrowser:(YXImageBrowser *)browser;

@property (nonatomic, assign) NSUInteger dataCacheCountLimit;

- (NSInteger)numberOfCells;

- (id<YXDataProtocol>)dataForCellAtIndex:(NSInteger)index;

- (void)clear;

@property (nonatomic, assign) NSUInteger preloadCount;

- (void)preloadWithPage:(NSInteger)page;

@end

NS_ASSUME_NONNULL_END
